<!DOCTYPE html>
<html lang="en">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
		<meta charset="utf-8" />
		<title>驴妈妈流立方</title>
		<meta name="description" content="overview &amp; stats" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
		<!-- bootstrap & fontawesome -->
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${rc.contextPath}/assets/font-awesome/4.5.0/css/font-awesome.min.css" />
		<!-- page specific plugin styles -->
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/daterangepicker.min.css" />
		<!-- text fonts -->
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/fonts.googleapis.com.css" />
		<!-- ace styles -->
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/ace-skins.min.css" />
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="${rc.contextPath}/assets/css/jquery.gritter.min.css" />
		<!-- ace settings handler -->
		<script src="${rc.contextPath}/assets/js/ace-extra.min.js"></script>
	</head>

	<body class="skin-2" style="background-color: #FFF;">
		      <div class="page-content">
    <div class="page-header">
        <h1>
                          编辑规则
        </h1>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <form id="ruleformForm" class="form-horizontal" role="form" action="${rc.contextPath}/webStatistics/saveEditRule" method="POST">
                 <input type="hidden" id="id" name="id" value="${H5Rule.id}">
                 <div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">
					<strong class="text-danger"><front color="red">*</front></strong>规则类型 ： </label>
                    <div class="col-sm-8">
                        <input type="text" id="name" name="name" value="${H5Rule.name}" disabled="true" class="col-xs-10 col-sm-5">
                    </div>
                 </div>
                 <div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">
					<strong class="text-danger"><front color="red">*</front></strong>规则配置Url ： </label>
                    <div class="col-sm-8">
                        <input type="text" id="link_url" name="link_url" value="${H5Rule.link_url}" class="col-xs-10 col-sm-5">
                    </div>
                </div>
                <div class="form-group"><label class="col-sm-3 control-label no-padding-right" for="form-field-1">
					<strong class="text-danger"><front color="red">*</front></strong>查询条件 ： </label>
                    <div class="col-sm-8">
                        <input type="text" id="conditionName" name="conditionName"  value="${H5Rule.conditionName}" class="col-xs-10 col-sm-5">
                    </div>
                </div>
                <div class="clearfix form-actions">
                    <div class="col-md-offset-4 col-md-8">
                        <button id="submitBtn" class="btn btn-info" type="button">
                            <i class="ace-icon fa fa-check bigger-110"></i>
                                                                  保存
                        </button>
                         <button class="btn btn-info" type="button" onclick="skip('${rc.contextPath}/webStatistics/maintenance')" style="margin-left:10px;">
							<i class="ace-icon fa fa-undo bigger-110"></i>
						   取消
						</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
		<script src="${rc.contextPath}/assets/js/jquery-2.1.4.min.js"></script>
		<script type="text/javascript">
			if('ontouchstart' in document.documentElement) document.write("<script src='${rc.contextPath}/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="${rc.contextPath}/assets/js/bootstrap.min.js"></script>

		<!-- page specific plugin scripts -->
		<script src="${rc.contextPath}/assets/js/jquery-ui.min.js"></script>
		<script src="${rc.contextPath}/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="${rc.contextPath}/assets/js/jquery.gritter.min.js"></script>

		<!-- ace scripts -->
		<script src="${rc.contextPath}/assets/js/ace-elements.min.js"></script>
		<script src="${rc.contextPath}/assets/js/ace.min.js"></script>
		<!-- user scripts -->
		<script src="${rc.contextPath}/assets/js/user/base.js"></script>
		<script type="text/javascript">
				$('#submitBtn').on('click', function(){
					
					var link_url = $("#link_url").val();
					var conditionName = $("#conditionName").val();
					showMsg("添加成功!");
					$("#ruleformForm").submit();
				});
		</script>
	</body>
</html>